<template>
	<view class="contont" style="background-color: #F5F5F5;height: 100%;">
		<textarea value="" placeholder="请输入您的意见" v-model="text"/>
		<button @click="but">提交</button>
	</view>
</template>

<script>
	import {ajax} from '../../api.js'
	export default{
		data(){
			return{
				text:""
			}
		},
		methods:{
			but(){
				ajax({
					url:"/v1/appdriver/feedback",
					method:"post",
					data:{
						remark:this.text
					},
					success(res){
						uni.showToast({
						    title: '提交成功',
							icon:"none",
							success() {
								uni.navigateBack(1)
							}
						})
					}
				})
			}
		}
		}
</script>

<style>
	textarea{
		width:355px;
		height:200px;
		background:rgba(255,255,255,1);
		border-radius:8px;
		margin-top: 10px;
		font-size: 14px;
		text-indent: 20px;
		padding-top: 20px;
	}
	button{
		width:355px;
		height:44px;
		background:rgba(4,42,88,1);
		border-radius:8px;
		color: #FFFFFF;
		margin-top: 320px;
	}
	page{
		height: 100%;
	}
</style>
